package router

import (
	"hxz_api/handler/api"

	"github.com/cloudwego/hertz/pkg/app/server"
)

func Router(h *server.Hertz) {
	r1 := h.Group("r1")
	{
		r2 := r1.Group("r2")
		{
			r2.POST("send", api.Send)
		}
		r3 := r1.Group("r3")
		{
			r3.POST("register", api.Register)
			r3.POST("login", api.Login)
			r3.POST("position", api.Position)
			r3.GET("userlist", api.UserList)
			r3.GET("sgin", api.Sgin)
		}
		//39.951335108535, 116.51484487905
	}
}
